<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the most recent socket error number</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventutil.construct.html">EventUtil::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventutil.getlastsocketerror.html">EventUtil::getLastSocketError</a></div>
 <div class="up"><a href="class.eventutil.html">EventUtil</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventutil.getlastsocketerrno" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventUtil::getLastSocketErrno</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventUtil::getLastSocketErrno</span> &mdash; <span class="dc-title">Returns the most recent socket error number</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventutil.getlastsocketerrno-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="type">int</span> 
   <span class="methodname"><strong>EventUtil::getLastSocketErrno</strong></span>
    ([ <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$socket</code>
    <span class="initializer"> = <strong><code>NULL</code></strong></span>
   </span>
  ] )</div>

  <p class="para rdfs-comment">
   Returns the most recent socket error number(
   <em>errno</em>
   ).
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventutil.getlastsocketerrno-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">socket</code></em>
    </dt>

    <dd>

     <p class="para">
      Socket resource, stream or a file descriptor of a socket.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventutil.getlastsocketerrno-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the most recent socket error number(
   <em>errno</em>
   ).
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventutil.getlastsocketerrno-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <span class="methodname"><a href="eventutil.getlastsocketerror.html" class="methodname" rel="rdfs-seeAlso">EventUtil::getLastSocketError()</a> - Returns the most recent socket error</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventutil.construct.html">EventUtil::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventutil.getlastsocketerror.html">EventUtil::getLastSocketError</a></div>
 <div class="up"><a href="class.eventutil.html">EventUtil</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
